package com.google.code.hibernate.rest.representation;

import java.util.List;
import java.util.Set;

import com.google.code.hibernate.rest.MarshalException;
import com.google.code.hibernate.rest.UnmarshalException;


/**
 * 
 * @author wangzijian
 * 
 */
public interface Representor {

	Object fromRepresentation(String string) throws UnmarshalException;
	
	String representEntity(Object entity, String baseURL) throws MarshalException;
	
	String representEntities(String entityName, List<?> entities, String baseURL) throws MarshalException;

	String representEntityCategories(Set<String> entityCategories, String baseURL) throws MarshalException;
	
	String getContentType();
}
